|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectfurny.ga.rules.RoomContainsRule
public class RoomContainsRule
This is a IValidationRule
implementation that keeps all furnitures in
the room.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface ga.core.validation.IValidationRule |
---|
IValidationRule.Type |
Constructor Summary | |
---|---|
RoomContainsRule()
|
Method Summary | |
---|---|
IValidationRule.Type |
getType()
Getter for the type of this rule. |
float |
matchingDegree(FurnLayoutIndividual individual,
GAContext context)
Calculates the matching degree in [0;1] for this rule. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RoomContainsRule()
Method Detail |
---|
public float matchingDegree(FurnLayoutIndividual individual, GAContext context)
IValidationRule
matchingDegree
in interface IValidationRule<FurnLayoutIndividual>
individual
- The individual to test.context
- The GA context.
public IValidationRule.Type getType()
IValidationRule
getType
in interface IValidationRule<FurnLayoutIndividual>
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |